package com.center.biz.impl;

import com.center.api.model.EduWebsiteImages;
import com.center.api.remote.RemoteEduWebsiteImagesService;
import com.center.biz.dao.EduWebsiteImagesMapper;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service(version = "1.0",interfaceClass = RemoteEduWebsiteImagesService.class)
public class RemoteEduWebsiteImagesServiceImpl implements RemoteEduWebsiteImagesService {

    @Autowired
    private EduWebsiteImagesMapper eduWebsiteImagesMapper;

    @Override
    public int save(EduWebsiteImages eduWebsiteImages) {
        return eduWebsiteImagesMapper.insertSelective(eduWebsiteImages);
    }

    @Override
    public int update(EduWebsiteImages eduWebsiteImages) {
        return eduWebsiteImagesMapper.updateByPrimaryKeySelective(eduWebsiteImages);
    }

    @Override
    public int delete(int id) {
        return eduWebsiteImagesMapper.deleteByPrimaryKey(id);
    }

    @Override
    public List<EduWebsiteImages> select(EduWebsiteImages eduWebsiteImages) {
        return null;
    }

    @Override
    public EduWebsiteImages getById(int id) {
        return eduWebsiteImagesMapper.selectByPrimaryKey(id);
    }
}
